< previous page page_327 next page >

Page 327
member is mapped to the property or method of the component that bears the same name. For example, the Text property of the custom control is automatically mapped to the Text property of a text or combo box. square.gif

4. Click the Next button to proceed to the wizard's final dialog box. This dialog box, shown in Figure 14.13, lets you set the attributes of each public member that is not mapped to a constituent control.
0327-01.jpg
Figure 14.13
You can set the attributes for properties and
methods before completing the code for the control.
Depending on the type of member you are creating, the wizard enables you to specify different attributes. For a property, you can specify the type of data the property can hold, the default value of the property, and what type of access the user has to the property at designtime and runtime. The access type determines whether a Property Let, Property Get, or both procedures are created for the property. For runtime access, you can choose Read/Write, Read Only, Write Only, or none. For designtime access, you can choose Read/Write, Read Only, or none.
For the sample control, set the data type of the CharAccept property to Integer, and set the default value to 0. You can also type an optional description in the Description box. Property descriptions appear at the bottom of the Properties window during designtime. Because this is the final step of the wizard, you are now ready to click the Finish button.
Finishing the Code
After you click the Finish button, the ActiveX Control Interface Wizard creates a number of code modules in your control. The wizard also displays a summary page, providing details of the steps remaining to finish your control. A sample of this summary page is shown in Figure 14.14.
After reviewing the information on the summary page, you can take a look at the code that was generated by the wizard. You can view the code by clicking the user control in the Project window and then clicking the View Code button.

 
< previous page page_327 next page >